#!/bin/sh

for i in $PLIBDIRS # $PLIBDIRS is exported in 2createpackages
do
	[ -d $i ] || continue
	if [ -e ${i}/libpcre.so.3 ] ; then
		ln -sv libpcre.so.3 ${i}/libpcre.so.0
		ln -sv libpcre.so.3 ${i}/libpcre.so.1
		ln -sv libpcreposix.so.3 ${i}/libpcreposix.so.1
		ln -sv libpcreposix.so.3 ${i}/libpcreposix.so.0
	elif [ -e ${i}/libpcre.so.1 ] ; then
		ln -sv libpcre.so.1 ${i}/libpcre.so.0
		ln -sv libpcreposix.so.1 ${i}/libpcreposix.so.0
	fi
done
